# @Author   :   hany
# @Time      :  2021/4/12

from basic.device.Android import Android
from airtest.core.api import *

class ycflPage(Android):
    # 首页邕城福利
    Btn = "com.cloudbae.lovenanning:id/appName"

    @classmethod
    def clickBtn(self):
        self.poco(self.Btn, text="信用南宁").wait(3).click()
        print("点击信用南宁")
        sleep(3)

    @classmethod
    def getText(self):
        ycflText = self.poco(text="诚信卡").wait(3)
        if ycflText.exists():
            print(ycflText)
            return True
